/*
	Copyright (c) 2007, ANYwebcam.com Pty Ltd. All rights reserved.

	The software in this package is published under the terms of the BSD style 
	license, a copy of which has been included with this distribution in the 
	license.txt file.
*/
package com.anywebcam.di.error
{
	import com.anywebcam.di.*;

	/**
	 * Throw by DIComponent instances
	 */
	public class DIComponentError extends DIError
	{
		/**
		 * @param component The DIComponent this error relates to 
		 * @param message The error message
		 */
		public function DIComponentError( component:DIComponent, message:String )
		{
			_component = component;
			
			super( message );
		}
		
		/**
		 * The DIComponent this error relates to
		 * @return The DIComponent this error relates to
		 */
		public function get component():DIComponent
		{
			return _component;
		}
		
		private var _component:DIComponent;
	}
}